home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / _IEFormReset.au3 < prev    next >
Text File  |  2006-07-14  |  478b  |  12 lines

  1. ; *******************************************************
  2. ; Example 1 - Open a browser with the form example, fill in a form field and
  3. ;                reset the form back to default values
  4. ; *******************************************************
  5. ;
  6. #include <IE.au3>
  7. $oIE = _IE_Example ("form")
  8. $oForm = _IEFormGetObjByName ($oIE, "ExampleForm")
  9. $oText = _IEFormElementGetObjByName ($oForm, "textExample")
  10. _IEFormElementSetValue ($oText, "Hey! It works!")
  11. _IEFormReset ($oForm)
  12.